HAL GENERIC types migration ¶
This section provides information about the HAL GENERIC types migration.
HAL tick frequency type definition ¶
In HAL2, the tick frequency enumeration has been renamed to
hal_tick_freq_t
for better clarity and consistency.
|
HAL1 |
HAL2 |
|---|---|
typedef enum
{
HAL_TICK_FREQ_10HZ = 100U,
HAL_TICK_FREQ_100HZ = 10U,
HAL_TICK_FREQ_1KHZ = 1U,
HAL_TICK_FREQ_DEFAULT = HAL_TICK_FREQ_1KHZ
} HAL_TickFreqTypeDef;
|
typedef enum
{
HAL_TICK_FREQ_10HZ = 100U,
HAL_TICK_FREQ_100HZ = 10U,
HAL_TICK_FREQ_1KHZ = 1U,
HAL_TICK_FREQ_DEFAULT = HAL_TICK_FREQ_1KHZ
} hal_tick_freq_t;
|
Related concepts: Replaced TypeDef suffix with _t in type names